#ifndef RS485THREAD1_H
#define RS485THREAD1_H

#include <QThread>
#include <mainwindow.h>
#include <QtSerialPort/QtSerialPort>

class RS485Thread1 : public QThread
{
    Q_OBJECT
public:
    RS485Thread1(QWidget * parent, QSerialPort *SerialPort);
protected:
    void run();
protected:
    QSerialPort * SerialPort;
    QWidget * parent;
signals:
    void sendResult(int code, QString str);
    void testString1(QString s1);
    void TCPSendS(QString s1);
};
#endif // RS485THREAD_H




